package cc.jinglupeng.kom.bean;

import cc.jinglupeng.kom.util.JsonUtil;

public class ZkPartitionState {

    private String topic;
    private int partition;
    private int controller_epoch;
    private int leader;
    private int version;
    private int leader_epoch;
    private int[] isr;

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public int getPartition() {
        return partition;
    }

    public void setPartition(int partition) {
        this.partition = partition;
    }

    public int getController_epoch() {
        return controller_epoch;
    }

    public void setController_epoch(int controller_epoch) {
        this.controller_epoch = controller_epoch;
    }

    public int getLeader() {
        return leader;
    }

    public void setLeader(int leader) {
        this.leader = leader;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public int getLeader_epoch() {
        return leader_epoch;
    }

    public void setLeader_epoch(int leader_epoch) {
        this.leader_epoch = leader_epoch;
    }

    public int[] getIsr() {
        return isr;
    }

    public void setIsr(int[] isr) {
        this.isr = isr;
    }

    @Override
    public String toString() {
        return JsonUtil.toJson(this);
    }
}
